package com.aop.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("permission")
public class Permission {
    @TableId(value = "permission_id", type = IdType.AUTO)
    private Integer permissionId;
    private String permissionName;
    private String description;
    private Integer parentId;
    private Integer orderNum;
    private String componentPath;
    private String path;
    private String menuType;
    private Integer status;
    private String perms;

    @TableField(exist = false)
    private List<Permission> childrenList;

}
